﻿using Mes.Domain.BoundedContext.EntityBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mes.Domain.BoundedContext.Entities.WorkOrders
{
    public class JobRoute : NoIdEntityBase
    {
        public JobRoute() { }

        public JobRoute(string woId, string operId, string inputOperId, double inputPercent)
        {
            Wo_Id = woId;
            Oper_Id = operId;
            Input_Oper_Id = inputOperId;
            Input_Percent = inputPercent;
        }

        public string Wo_Id { get; set; } = string.Empty;

        public string Oper_Id { get; set; } = string.Empty;

        public string Input_Oper_Id { get; set; } = string.Empty;

        public double Input_Percent { get; set; } = 1;

        public string? Last_Edit_Comment { get; set; } = string.Empty;

        public string? Last_Edit_By { get; set; }=string.Empty;

        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        public long Mod_Id { get; set; }

        public int Row_Id { get; set; }
    }
}
